import request from '@/utils/request'

// 查询客房订单详情信息列表
export function listRoomDetail(query) {
  return request({
    url: '/ruoyi/roomDetail/list',
    method: 'get',
    params: query
  })
}

// 查询客房订单详情信息详细
export function getRoomDetail(detailId) {
  return request({
    url: '/ruoyi/roomDetail/' + detailId,
    method: 'get'
  })
}

// 新增客房订单详情信息
export function addRoomDetail(data) {
  return request({
    url: '/ruoyi/roomDetail',
    method: 'post',
    data: data
  })
}

// 修改客房订单详情信息
export function updateRoomDetail(data) {
  return request({
    url: '/ruoyi/roomDetail',
    method: 'put',
    data: data
  })
}

// 删除客房订单详情信息
export function delRoomDetail(detailId) {
  return request({
    url: '/ruoyi/roomDetail/' + detailId,
    method: 'delete'
  })
}
